package com.zmc.product.infrastructure.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zmc.common.utils.PageUtils;
import com.zmc.product.infrastructure.bean.vo.BasePropertyValueVo;
import com.zmc.product.infrastructure.entity.CommodityCategoryPropertyValueEntity;
import com.zmc.product.infrastructure.bean.query.CommodityCategoryPropertyValueQuery;
import com.zmc.product.infrastructure.bean.vo.PropertyValueVo;

import java.util.List;

/**
 * 商品中心的属性表
 *
 * @author zmc
 * @email 
 * @date 2024-10-14 18:43:35
 */
public interface CommodityCategoryPropertyValueService extends IService<CommodityCategoryPropertyValueEntity> {

    PageUtils pageCommodityCategoryPropertyValueList(CommodityCategoryPropertyValueQuery query);

    List<CommodityCategoryPropertyValueEntity> selectCommodityCategoryPropertyValueList(CommodityCategoryPropertyValueQuery query);

    List<PropertyValueVo> getGoodsSpuPropertyValueListByCategoryIdAndType(Long categoryId);

    List<PropertyValueVo> getGoodsSkuPropertyValueListByCategoryIdAndType(Long categoryId);

    Long countByCategoryId(Long id);

    List<BasePropertyValueVo> getGoodsBaseInfoBySpuId(String spuId);
}

